package com.group9.handinhand.service.so;

import com.group9.handinhand.dao.model.OfferTag;
/**
 * Class for service of offer tag
 *
 */
public class OfferTagSO extends AbstractBaseSO {
	
    private TagSO tag;
	private OfferSO offer;
	/**
	 * converts offer tag model object
	 * @return
	 */
	public OfferTag convertToModelObject() {
		OfferTag model = (OfferTag) convert(new OfferTag());
		model.setOffer(this.offer.convertToModelObject());
		model.setTag(this.tag.convertToModelObject());
		return model;
	}

	public TagSO getTag() {
		return tag;
	}

	public void setTag(TagSO tag) {
		this.tag = tag;
	}

	public OfferSO getOffer() {
		return offer;
	}

	public void setOffer(OfferSO offer) {
		this.offer = offer;
	}

	@Override
	public String toString() {
		return "EventTagSO [tag=" + tag + ", offer=" + offer + "]";
	}
	
	
}
